import request from '@/utils/request'

export const getPermission = () => request.get('/sys/permission')

export const addPermission = data => request.post('/sys/permission', data)

export const delPermission = id => request.delete('/sys/permission/' + id)

export const permissionDetail = id => request.get('/sys/permission/' + id)

export const editPermission = data => request.put(`/sys/permission/${data.id}`, data)
